<?php
include("../CrawlerURL.php");
class CrawerURLWindows implements CrawlerURL{
	public function parseURLS($url,$reg){
		$isCollect = true;

		$fp = @fopen($url,"r") or $isCollect = false;

		if(isCollect){
			$fcontent = file_get_contents($url);
			$games = iconv("utf-8", "utf-8//IGNORE", $fcontent);
			//echo $games;
		    preg_match_all($reg,$games,$abc);
			$urls = $abc[2];
			
			return $urls;
		}
	}
}